﻿
using OA.IRepository;

namespace OA.Repository.Factory
{
    public partial class DbSession : IDbSession
    {
           
        private ISysActionRepository _SysActionRepository;

        public ISysActionRepository SysActionRepository
        {
            get { 
                if (_SysActionRepository == null)
                {
                    _SysActionRepository = new SysActionRepository(); 
                }
                return  _SysActionRepository; 
            }
            set { _SysActionRepository = value; }
          
        }
       
        private ISysOrgRepository _SysOrgRepository;

        public ISysOrgRepository SysOrgRepository
        {
            get { 
                if (_SysOrgRepository == null)
                {
                    _SysOrgRepository = new SysOrgRepository(); 
                }
                return  _SysOrgRepository; 
            }
            set { _SysOrgRepository = value; }
          
        }
       
        private ISysPersonRepository _SysPersonRepository;

        public ISysPersonRepository SysPersonRepository
        {
            get { 
                if (_SysPersonRepository == null)
                {
                    _SysPersonRepository = new SysPersonRepository(); 
                }
                return  _SysPersonRepository; 
            }
            set { _SysPersonRepository = value; }
          
        }
       
        private ISysPositionRepository _SysPositionRepository;

        public ISysPositionRepository SysPositionRepository
        {
            get { 
                if (_SysPositionRepository == null)
                {
                    _SysPositionRepository = new SysPositionRepository(); 
                }
                return  _SysPositionRepository; 
            }
            set { _SysPositionRepository = value; }
          
        }
       
        private ISysRoleRepository _SysRoleRepository;

        public ISysRoleRepository SysRoleRepository
        {
            get { 
                if (_SysRoleRepository == null)
                {
                    _SysRoleRepository = new SysRoleRepository(); 
                }
                return  _SysRoleRepository; 
            }
            set { _SysRoleRepository = value; }
          
        }
       
        private ISysUserRepository _SysUserRepository;

        public ISysUserRepository SysUserRepository
        {
            get { 
                if (_SysUserRepository == null)
                {
                    _SysUserRepository = new SysUserRepository(); 
                }
                return  _SysUserRepository; 
            }
            set { _SysUserRepository = value; }
          
        }
    }
}